import { axios } from '@/utils/request'
//统计数量
export function statistics(id) {
  return axios({
    url: `/school/forms/${id}/statistics`,
    method: 'post',
    // data: params
  })
}
//趋势分析

export function trendAnalysisData(id,params) {
  return axios({
    url: `/school/forms/${id}/trend-analysis`,
    method: 'post',
    data: params
  })
}
export function orderStatisticsData(id) {
  return axios({
    url: `/school/forms/${id}/order-statistics`,
    method: 'post',
    // data: params
  })
}
export function studentList(id,params) {
  return axios({
    url: `/school/forms/${id}/student-list`,
    method: 'post',
    data: params
  })
}
export function dataInfo(id) {
  return axios({
    url: `/school/forms/${id}`,
    method: 'post',
  })
}
//导出
export function dataExport(id,parmars) {
  return axios({
    url: `/school/forms/export?form_id=${id}`,
    method: 'post',
    data:parmars
  })
}